package com.school.sports.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 场地表实体类
 */
@Data
@TableName("venue")
@AllArgsConstructor
@NoArgsConstructor
public class Venue {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 场地名称
     */
    @NotBlank(message = "场地名称不能为空")
    private String name;

    /**
     * 场地位置
     */
    @NotBlank(message = "场地位置不能为空")
    private String location;

    /**
     * 容纳人数
     */
    private Integer capacity;

    /**
     * 设备清单
     */
    private String equipment;

    /**
     * 状态：可用、占用、维修中
     */
    @NotBlank(message = "状态不能为空")
    private String status;
}